import wx
from functions.note_book import NoteBook
from utils.task_barIcon import TaskBarIcon
from utils.tables_if_exit import TablesIfExit


class TotalTools(wx.Frame):
    def __init__(self):
        style = wx.FRAME_SHAPED | wx.FRAME_NO_TASKBAR | wx.STAY_ON_TOP | wx.NO_BORDER  # 允许不规则、没有任务栏图标、置顶、无边框
        super(TotalTools, self).__init__(parent=None, style=style)
        TaskBarIcon(self)  # 任务栏图标
        TablesIfExit().tables_if_exit()
        NoteBook(None, '记事本').Show()


if __name__ == "__main__":
    app = wx.App()
    total_tools = TotalTools()
    total_tools.Show(False)
    app.MainLoop()
